
$(function () {
    var fn = ABUS.Fn;
    var $el = $("#shopCar");

    /*$el.find('.order_list li').on('touchend',function () {
        //alert($('.right_pic').attr('src'))
        if($(this).children('.right_pic').attr('src') == '../../../images/unselected.png'){
            $(this).children('.right_pic').attr('src','../../../images/select.png')
        }else{
            $(this).children('.right_pic').attr('src','../../../images/unselected.png')
        }
    })*/
    $el.find('.select_all').on('touchend',function () {
        if($(this).attr('src') == '../../../images/unselected.png'){
            $(this).attr('src','../../../images/select.png');
            $('.select_pic').attr('src','../../../images/select.png')
        }else{
            $(this).attr('src','../../../images/unselected.png');
            $('.select_pic').attr('src','../../../images/unselected.png')
        }
    });
    $el.find('.shop_list li .select_pic').on('touchend',function () {
        //alert($(this).parent().index())
        if($(this).attr('src') == '../../../images/unselected.png'){
            $(this).attr('src','../../../images/select.png');
        }else{
            $(this).attr('src','../../../images/unselected.png');
            $('.select_all').attr('src','../../../images/unselected.png')
        }
    });

    document.addEventListener('touchmove', function (e) {
        e.preventDefault();
        isDrag = true;
    }, {passive: false});
    new IScroll('#shop_list', {mouseWheel: true});
});
